package com.module.mall.adpter;

import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;

import com.module.base.widgets.RoundImageView;
import com.module.base.widgets.XGridView;
import com.module.mall.R;

/**
 * Created by shibing on 18/5/30.
 */

public class MoreEvaluatePicAdapter extends BaseAdapter {


    private Activity activity;

    public MoreEvaluatePicAdapter(Activity activity) {
        this.activity = activity;
    }

    @Override
    public int getCount() {
        return 3;
    }

    @Override
    public Object getItem(int position) {
        return null;
    }

    @Override
    public long getItemId(int position) {
        return 0;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {

        ViewHodler viewHodler = null;
        if (convertView == null) {
            convertView = LayoutInflater.from(activity).inflate(R.layout.item_evaluate_image, null);
            viewHodler = new ViewHodler(convertView);
            convertView.setTag(viewHodler);
        } else {
            viewHodler = (ViewHodler) convertView.getTag();
        }

        return convertView;
    }


    public class ViewHodler {


        private ImageView imageView;


        public ViewHodler(View view) {
            imageView = view.findViewById(R.id.item_evaluate_image);

        }
    }
}
